package com.dubbo.controller;

import com.dubbo.service.Address2Service;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping("/address")
public class Address2Controller {

	@Resource
	private Address2Service address2Service;

	@ResponseBody
	@RequestMapping("/list")
	public Map<String,Object> list(){
		return address2Service.list();
	}
}
